<?php

namespace app\admin\model\setup;

use think\Model;

/**
 * Taxauthorities
 */
class Taxauthorities extends Model
{
    // 表主键
    protected $pk = 'taxid';
    
    // 表名
    protected $name = 'setup_taxauthorities';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function taxglcodeTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\fm\Chartmaster::class, 'taxglcode', 'accountcode');
    }

    public function purchtaxglaccountTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\fm\Chartmaster::class, 'purchtaxglaccount', 'accountcode');
    }
}